package com.shuai.baibi.service;

import com.shuai.baibi.model.entity.Chart;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URISyntaxException;

public interface FileService {
    boolean checkFileStyle(MultipartFile multipartFile);

    void uploadFile(MultipartFile file, Chart chart) throws IOException, URISyntaxException;
    void uploadFileSingle(MultipartFile file, Chart chart);

    void downLoadFileFromFileServer(String storageName, HttpServletResponse response);
}
